package com.mic.yzzn.plc.model;

import java.util.Date;

/**
 * Created by ASH on 16/4/18.
 */
public class PLCRequest {

	/** 请求时间 */
	private Date time = new Date();

	/** 客户端类型 */
	private String agent;

	/** 请求的类型
	 *  PLCMissionTypeWriteFireAndAck = 0,
	 *  PLCMissionTypeWriteFireAndForget = 1,
	 *  PLCMissionTypeReadNormal = 2,
	 *  PLCMissionTypeReadMultiple = 3;
	 */
	private int requestType;
	


	public PLCRequest(){}

	public PLCRequest(Date time, String agent) {
		this.time = time;
		this.agent = agent;
	}

	// getters and setters
	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public int getRequestType() {
		return requestType;
	}

	public void setRequestType(int requestType) {
		this.requestType = requestType;
	}

}
